<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
            margin: 0;
            padding: 0;
        }

        h1 {
            text-align: center;
            margin-top: 30px;
        }

        form {
            max-width: 300px;
            margin: 0 auto;
            padding: 20px;
            background-color: #ffffff;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
        }

        div {
            margin-bottom: 10px;
        }

        input {
            width: 92%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        button {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        button:hover {
            background-color: #0056b3;
        }
    </style>
    <script src="jquery.js"></script>
    <script>
        $(function (){
            $("form").submit(function (){
                const id = $("#id").val();
                const password = $("#password").val();
                if(id == "" || password == ""){
                    alert("请填写完整内容")
                    return false;
                }
                if(id == "admin" && password == "123456"){
                    return true;
                }else {
                    alert("账号或密码错误");
                    return false;
                }
            })
        })
    </script>
</head>
<body>
<h1>员工信息管理系统登录</h1>
<form action="index.html" >
    <div>
        <input id="id" placeholder="管理员账号" />
    </div>
    <div>
        <input id="password" placeholder="密码" type="password" />
    </div>
    <div>
        <button>登录</button>
    </div>
</form>
</body>
</html>
